public class Main {

    public static void main(String[] args) {
        Solution solution = new Solution();
//        boolean f = solution.isValid("()[]{(})");
//        boolean f = solution.isValid("(]");
//        boolean f = solution.isValid("()[]{}");
//        boolean f = solution.isValid("([)]");
        boolean f = solution.isValid("{})]");
        System.out.println(f);
    }
}